<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>LCV Framework: bayer-lcv.h Quellcode</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Erzeugt von Doxygen 1.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Hauptseite</span></a></li>
    <li><a href="classes.html"><span>Datenstrukturen</span></a></li>
    <li class="current"><a href="files.html"><span>Dateien</span></a></li>
  </ul>
</div>
<h1>bayer-lcv.h</h1><a href="bayer-lcv_8h.html">gehe zur Dokumentation dieser Datei</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment"> *</span>
<a name="l00003"></a>00003 <span class="comment"> *  Project:      Dataprocessing Framework</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * --------------------------------------------------------------------------</span>
<a name="l00006"></a>00006 <span class="comment"> *  Copyright (c) 2003 by Supercomputing Systems AG</span>
<a name="l00007"></a>00007 <span class="comment"> * --------------------------------------------------------------------------</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> *  $History: $</span>
<a name="l00011"></a>00011 <span class="comment"> *</span>
<a name="l00012"></a>00012 <span class="comment"> *</span>
<a name="l00013"></a>00013 <span class="comment"> *****************************************************************************/</span>
<a name="l00014"></a>00014 
<a name="l00015"></a>00015 <span class="preprocessor">#ifndef _BAYER_LCV_H</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#define _BAYER_LCV_H</span>
<a name="l00017"></a>00017 <span class="preprocessor"></span>
<a name="l00018"></a><a class="code" href="bayer-lcv_8h.html#06fc87d81c62e9abb8790b6e5713c55bc8a40a5091c6fad76cb9164876c6fc70">00018</a> <span class="keyword">enum</span> {<a class="code" href="bayer-lcv_8h.html#06fc87d81c62e9abb8790b6e5713c55bc8a40a5091c6fad76cb9164876c6fc70">ROFFSET</a> = 2, <a class="code" href="bayer-lcv_8h.html#06fc87d81c62e9abb8790b6e5713c55b5f11449b9047629154a871fa1c07e48e">GOFFSET</a> = 1, <a class="code" href="bayer-lcv_8h.html#06fc87d81c62e9abb8790b6e5713c55b5a3e5fec9864c188e63b852ffdd05a9f">BOFFSET</a> = 0};
<a name="l00019"></a><a class="code" href="bayer-lcv_8h.html#55ecd4f2ec2ebfe8d5b0163e4ac2a9671784b1a3d7cbd43c45ff82c72d05e4ae">00019</a> <span class="keyword">enum</span> <a class="code" href="bayer-lcv_8h.html#55ecd4f2ec2ebfe8d5b0163e4ac2a967">Colors</a>{ <a class="code" href="bayer-lcv_8h.html#55ecd4f2ec2ebfe8d5b0163e4ac2a9671784b1a3d7cbd43c45ff82c72d05e4ae">R</a> = 0, <a class="code" href="bayer-lcv_8h.html#55ecd4f2ec2ebfe8d5b0163e4ac2a9672fe993340f6abb2234e543cd427df70b">G</a> = 1, <a class="code" href="bayer-lcv_8h.html#55ecd4f2ec2ebfe8d5b0163e4ac2a9673f2a77ecd272aa6d6b5902faa5e5fc68">B</a> = 2};
<a name="l00020"></a><a class="code" href="bayer-lcv_8h.html#1fcc96778794b059ae97b09a7ecf5f0e">00020</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="bayer-lcv_8h.html#55ecd4f2ec2ebfe8d5b0163e4ac2a967">Colors</a> <a class="code" href="bayer-lcv_8h.html#1fcc96778794b059ae97b09a7ecf5f0e">Color</a>;
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* <a class="code" href="bayer-lcv_8c.html#591ee3e7fb0b3311c0e346160ce49a5f">cfa2bgr_DoBayerFiltering</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* raw_buf, <span class="keywordtype">int</span> header_size, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height);
<a name="l00024"></a>00024 <span class="keywordtype">void</span> <a class="code" href="bayer-lcv_8c.html#1548ff298fb29b921f7124f62fd13e39">cfa2bgr_DetFirstPos</a>(<span class="keywordtype">int</span>* nRx, <span class="keywordtype">int</span>* nRy, <span class="keywordtype">int</span>* nGx, <span class="keywordtype">int</span>* nGy, <span class="keywordtype">int</span>* nBx, <span class="keywordtype">int</span>* nBy);
<a name="l00025"></a>00025 <span class="keywordtype">void</span> <a class="code" href="bayer-lcv_8c.html#ea2573951d37d25d3e98d3aaf668ed18">cfa2bgr_CopyConstPix2Out</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* pInpData, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* pOutData, <span class="keywordtype">int</span> nXSize, <span class="keywordtype">int</span> nYSize, <span class="keywordtype">int</span> nStartPixX, <span class="keywordtype">int</span> nStartPixY, <a class="code" href="bayer-lcv_8h.html#1fcc96778794b059ae97b09a7ecf5f0e">Color</a> Col);
<a name="l00026"></a>00026 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="bayer-lcv_8c.html#f32b188b68942e6dc498c28fde558b78">cfa2bgr_InterpCurGreen</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *pInpData, <span class="keywordtype">int</span> nCurIndx, <span class="keywordtype">int</span> nXSize);
<a name="l00027"></a>00027 <span class="keywordtype">void</span> <a class="code" href="bayer-lcv_8c.html#d9ed7252b03ab300433b7c7798f203a7">cfa2bgr_InterpGreen</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* pInpData, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* pOutData, <span class="keywordtype">int</span> nXSize, <span class="keywordtype">int</span> nYSize, <span class="keywordtype">int</span> nStartPixX, <span class="keywordtype">int</span> nStartPixY);
<a name="l00028"></a>00028 <span class="keywordtype">void</span> <a class="code" href="bayer-lcv_8c.html#687bac14e38d8b6549839b5d435b99c1">cfa2bgr_InterpGreenBorder</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* pInpData, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* pOutData, <span class="keywordtype">int</span> nXSize, <span class="keywordtype">int</span> nYSize, <span class="keywordtype">int</span> nStartPixX, <span class="keywordtype">int</span> nStartPixY);
<a name="l00029"></a>00029 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="bayer-lcv_8c.html#d47d48e05330c7fc5e7a0d4b28e4d2b8">cfa2bgr_InterpCurRedOrBlueDiag</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* pInpData, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* pOutData, <span class="keywordtype">int</span> nCurIndx, <span class="keywordtype">int</span> nXSize);
<a name="l00030"></a>00030 <span class="keywordtype">void</span> <a class="code" href="bayer-lcv_8c.html#bed4c40592605145d0a23d628580c301">cfa2bgr_InterpRedOrBlue</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* pInpData, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* pOutData, <span class="keywordtype">int</span> nXSize, <span class="keywordtype">int</span> nYSize, <span class="keywordtype">int</span> nStartPixX, <span class="keywordtype">int</span> nStartPixY, <span class="keywordtype">int</span> isRed);
<a name="l00031"></a>00031 <span class="keywordtype">void</span> <a class="code" href="bayer-lcv_8c.html#daf63759293e4aa8e8225e041b50e8e4">cfa2bgr_InterpRedOrBlueBorder</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* pInpData, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* pOutData, <span class="keywordtype">int</span> nXSize, <span class="keywordtype">int</span> nYSize, <span class="keywordtype">int</span> nStartPixX, <span class="keywordtype">int</span> nStartPixY, <span class="keywordtype">int</span> isRed);
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="comment">// BayerFilterfunction</span>
<a name="l00036"></a>00036 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* <a class="code" href="bayer-lcv_8h.html#ae5668beef2fab4e84855147a4a2ff73">DoBayerFiltering</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>*, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>);
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="comment">// Determine position of first pixels in the input image</span>
<a name="l00039"></a>00039 <span class="keywordtype">void</span> <a class="code" href="bayer-lcv_8h.html#7eb16a75a9111860765414566c82096d">DetFirstPos</a>(<span class="keywordtype">int</span>* nRx, <span class="keywordtype">int</span>* nRy, <span class="keywordtype">int</span>* nGx, <span class="keywordtype">int</span>* nGy, <span class="keywordtype">int</span>* nBx, <span class="keywordtype">int</span>* nBy);
<a name="l00040"></a>00040 
<a name="l00041"></a>00041 <span class="comment">// Copy the pixels that will not be changed from input to the ouput</span>
<a name="l00042"></a>00042 <span class="keywordtype">void</span> <a class="code" href="bayer-lcv_8h.html#6e6a9f6c271ba21dd3bcb709d477546c">CopyConstPix2Out</a>(<span class="keywordtype">char</span>* pInpData, <span class="keywordtype">char</span>* pOutData, <span class="keywordtype">int</span> nXSize, <span class="keywordtype">int</span> nYSize, <span class="keywordtype">int</span> nStartPixX, <span class="keywordtype">int</span> nStartPixY, <a class="code" href="bayer-lcv_8h.html#1fcc96778794b059ae97b09a7ecf5f0e">Color</a> Col);
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 <span class="comment">// Interpolate</span>
<a name="l00045"></a>00045 <span class="keywordtype">void</span> <a class="code" href="bayer-lcv_8h.html#8eb16e58061a0dc277025232ae511c68">InterpGreen</a>(<span class="keywordtype">char</span>* pInpData, <span class="keywordtype">char</span>* pOutData, <span class="keywordtype">int</span> nXSize, <span class="keywordtype">int</span> nYSize, <span class="keywordtype">int</span> nStartPixX, <span class="keywordtype">int</span> nStartPixY);
<a name="l00046"></a>00046 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="bayer-lcv_8h.html#c756712bbd392096f6052f2c8b936efa">InterpCurGreen</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* pInpData, <span class="keywordtype">int</span> nCurIndx, <span class="keywordtype">int</span> nXSize);
<a name="l00047"></a>00047 <span class="keywordtype">void</span> <a class="code" href="bayer-lcv_8h.html#53a18c5ac3f5bda5f63d48d68c913532">InterpGreenBorder</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* pInpData, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* pOutData, <span class="keywordtype">int</span> nXSize, <span class="keywordtype">int</span> nYSize, <span class="keywordtype">int</span> nStartPixX, <span class="keywordtype">int</span> nStartPixY);
<a name="l00048"></a>00048 <span class="keywordtype">void</span> <a class="code" href="bayer-lcv_8h.html#9e5bfd95845522ed9b83cd7a1594a8bd">InterpRedOrBlue</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* pInpData, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* pOutData, <span class="keywordtype">int</span> nXSize, <span class="keywordtype">int</span> nYSize, <span class="keywordtype">int</span> nStartPixX, <span class="keywordtype">int</span> nStartPixY, <span class="keywordtype">int</span> isRed);
<a name="l00049"></a>00049 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="bayer-lcv_8h.html#8a1c1659bc52fb68e0aae57eb89d6792">InterpCurRedOrBlueDiag</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* pInpData, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* pOutData, <span class="keywordtype">int</span> nCurIndx, <span class="keywordtype">int</span> nXSize);
<a name="l00050"></a>00050 <span class="keywordtype">void</span> <a class="code" href="bayer-lcv_8h.html#a839a89c960d39a5796bcedf9df68bed">InterpRedOrBlueBorder</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* pInpData, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* pOutData, <span class="keywordtype">int</span> nXSize, <span class="keywordtype">int</span> nYSize, <span class="keywordtype">int</span> nStartPixX, <span class="keywordtype">int</span> nStartPixY, <span class="keywordtype">int</span> isRed);
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 <span class="preprocessor">#endif // _BAYER_LCV_H</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span>
</pre></div><hr size="1"><address style="text-align: right;"><small>Erzeugt am Thu Dec 13 13:57:31 2007 für LCV Framework von&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
</body>
</html>
